package com.itheima.reggie.Dto;

import com.itheima.reggie.entity.OrderDetail;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Yan
 * @date 2022/3/4
 */
@Data
public class OrderDTO {
    private Long id;

    /**
     * 下单时间
     */
    private LocalDateTime orderTime;

    /**
     * 订单状态 1待付款，2待派送，3已派送，4已完成，5已取消
     */
    private Integer status;

    /**
     * 实收金额
     */
    private BigDecimal amount;

    /**
     * 订单明细
     */
    private List<OrderDetail> orderDetails =new ArrayList<>();

}
